<!--
 * @Description: 
 * @Author: 赵华宇
 * @Date: 2025-04-28 10:16:05
 * @LastEditors: 赵华宇
 * @LastEditTime: 2025-04-28 10:31:43
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>播放效果</title>
    <style>
        *{
            margin:0;
            padding:0;
        }
        li{
            list-style: none;
        }
        img{
            width: 100%;
        }
        .box{
            width: 249px;
            height: 210px;
            margin:50px auto;
        }
        .box p{
            color:black;
            padding:10px 10px 0 10px;
        }
        /* 1. 摆放播放按钮 图片区域的中间*/
        .box li{
            overflow: hidden;
        }
        .pic{
            position: relative;
        }
        .pic::after{
            position: absolute;
            left:50%;
            top:50%;
            /* margin-top: -29px;
            margin-left: -29px; */
            content:'';
            width: 58px;
            height: 58px;
            background-image: url(./images/hot.png);
            transform: translate(-50%,-50%) scale(5);
            opacity: 0;
            transition: all .5s;;
        }
        /* 2.hover效果：大按钮 看不见：透明度是0 小按钮 看得见 透明度是1  */
        .box li:hover .pic::after{
            transform:translate(-50%,-50%) scale(1);
            opacity: 1;
        }
    </style>
</head>
<body>
    <div class="box">
        <ul>
            <li>
                <div class="pic">
                    <img src="./images/1.jpg" alt="">
                </div>
                <p>星空话语 美丽的星空</p>
            </li>
        </ul>
    </div>
</body>
</html>